package com.nidu.demo.mail.convertor;

import com.nidu.demo.base.BaseConvertor;
import com.nidu.demo.convertor.MapStructConfig;
import com.nidu.demo.mail.dto.MailLogCO;
import com.nidu.demo.mail.mapper.dataobject.MailLogDO;
import com.nidu.demo.mail.model.MailLog;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(config = MapStructConfig.class)
public interface MailLogConvertor extends BaseConvertor<MailLogDO, MailLog, MailLogCO> {
    
    @Override
    @Mapping(target = "createTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "createBy", ignore = true)
    @Mapping(target = "updateBy", ignore = true)
    MailLogDO toDataObject(MailLog mailLog);

}
